import { ApiProperty, PartialType } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
import { successfulDto } from './successful.dto';

export class errorDto extends PartialType(successfulDto) {
  @ApiProperty({ example: '错误类型', required: false })
  @IsNotEmpty()
  error?: string;
}
